Automattic\WooCommerce\StoreApi\Utilities\OrderController B

Total Complexity 85
Dependencies 9
Dependents 3
Total lines 732
Lines of code 460
Logical lines of code 180
Comment lines 195
Methods 20
Properties 0

Methods 20

Method Rating Maintainability Complexity Lines of code
get_failed_order_stock_error()
A
44 16 43
validate_address_fields()
A
42 10 55
validate_addresses()
A
42 9 57
validate_coupons()
A
43 6 52
update_line_items_from_cart()
S
50 6 30
validate_coupon_usage_limit()
S
48 5 37
validate_selected_shipping_methods()
S
59 5 15
update_order_from_cart()
S
49 4 30
validate_order_key()
S
68 5 6
validate_email()
S
56 3 20
sync_customer_data_with_order()
S
49 2 31
validate_coupon_email_restriction()
S
68 4 6
create_order_from_cart()
S
58 2 16
update_addresses_from_cart()
S
51 1 27
get_email_from_user_id()
S
75 2 4
get_usage_per_aliases()
S
59 1 14
validate_allowed_country()
S
79 1 3
get_coupon()
S
80 1 3
default_order_status()
S
82 1 3
validate_order_before_payment()
S
67 1 8